CMAKE_MINIMUM_REQUIRED(VERSION 3.22.1)

PROJECT(SUPER_TRADER C CXX)

macro(rw_module_source_all) 
    file(GLOB_RECURSE rw_module_source_list . "*.c*" "*.h" "*.hxx" "*.hpp" "*.inl")  
    aux_source_directory(. rw_module_source_list)
endmacro(rw_module_source_all)

enable_testing()

SET(CMAKES_ROOT ${PROJECT_SOURCE_DIR}/..)

SET(HEADER_BASE ${CMAKES_ROOT}/include)
SET(LIB_BASE ${CMAKES_ROOT}/lib)

SET(CMAKE_FOLDER ${CMAKES_ROOT}/project_cmake)
#SET(THIRD_PARTY_ROOT ${CMAKES_ROOT}/thirdparty)

set(CMAKE_BUILD_TYPE "Debug")

# include (${CMAKE_FOLDER}/common.cmake)

# set_common(${CMAKE_FOLDER} ${THIRD_PARTY_ROOT})
# set_glaze(${THIRD_PARTY_ROOT})
# set_jsoncpp(${THIRD_PARTY_ROOT})
# set_libwebsockets(${THIRD_PARTY_ROOT})
# set_libcurl(${THIRD_PARTY_ROOT})
# set_gmp(${THIRD_PARTY_ROOT})

SET(COMMON_HEADER_PATH ${HEADER_BASE}/common)

SET(BINANCE_H_PATH ${HEADER_BASE}/binance)
SET(BINANCE_LIB_PATH ${LIB_BASE}/binance)

SET(BIN_PATH ${CMAKES_ROOT}/bin)

set_property(GLOBAL PROPERTY USE_FOLDERS ON)

ADD_SUBDIRECTORY(binance_sdk)
ADD_SUBDIRECTORY(binance_sdk_test)
ADD_SUBDIRECTORY(md_gateway)
